/*
 * File         : cym_application.c
 * Version      : 0.2.0
 * Author       : Vincent Cheung
 * Date         : Oct. 09, 2013
 * Description  : This file is the application of this project.
 *
 * Copyright (C) 2013, CYM Co., Ltd.
 *
 * Change logs  :
 * Date                 Author          Notes
 * Oct. 09, 2013        Vincent         the first implenmentation
 * Oct. 31, 2013        Vincent         add soft timer support
 *
 */

#include "cym_system.h"
#include "cym_application.h"

#ifdef CYM_USING_SOFT_TIMER
extern void cym_soft_timer_check(void);
#endif

/**
 * The application will start here.
 *
 * @retval NULL
 */
void cym_application_start(void)
{
	while (CYM_TRUE)
	{
#ifdef CYM_USING_SOFT_TIMER
		/* check the soft timer in main loop */
		cym_soft_timer_check();
#endif
	}
}